package com.saver.core.processor;

import java.util.ArrayList;
import java.util.List;

import android.database.Cursor;
import android.net.Uri;

import com.saver.core.domain.Transaccion;

public class ProcessHistorySMS {
	
	public List<Transaccion> loadHistory(Uri uriSMSURI, Cursor cur) {
		List<Transaccion> listaTransaccion = new ArrayList<Transaccion>();
		SorterSMS sorterSMS = new SorterSMS();
		while (cur.moveToNext()) {
			listaTransaccion.addAll(sorterSMS.process(cur));
		}
		return listaTransaccion;
	}

}
